<?php

namespace Common\Logic;

/**
 * bpass操作逻辑层
 * @modify trainyao 2016-05-11 创建
 */
class BpassLogic extends \Common\Controller\BaseController {

    /**
     * 获取bpass配置
     * @modify trainyao 2016-05-11   创建
     * @return array                信息数组
     */
    public function getSetting() {
        return $this->__singleGet('_getSetting', array());
    }
    protected function _getSetting() {
        $settingModel = D('Setting');
        $settingInfo = $settingModel->select();
        return empty($settingInfo) ? array() : $settingInfo[0];
    }
}
